package com.topscomm.mpm.xxlJob;

import com.topscomm.mpm.service.IMpmProjectAppointmentService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wudaliang
 * @date 2021/7/30
 * @description:   项目超期/里程碑及任务超期 自动下发督办,只发一次，超期第一天发送一次，系统自动给项目经理/里程碑及任务责任人下发督办单（期限3天）
 * @modify:
 */
@JobHandler(value = "appointmentTimeOutRemindJob")
@Component
public class AppointmentTimeOutRemindJob extends IJobHandler {

    @Autowired
    private IMpmProjectAppointmentService mpmProjectAppointmentService;

    @Override
    public ReturnT<String> execute(String param) throws Exception {
        mpmProjectAppointmentService.remindTimeOutProject();
        return ReturnT.SUCCESS;
    }
}
